<<template>
  <h2>{{msg}}</h2>
</template>
<<script>
export default {
  name: 'Hi5',
  data() {
      return {
          msg: 'i am Hi5'
      }
  },
  beforeRouteEnter: (to, from, next) => {
    console.log("准备进入路由模板");
    next();
  },
  beforeRouteLeave: (to, from, next) => {
    console.log("准备离开路由模板");
    next();
  }
}
</script>

